﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="SponsorEdit.aspx.cs" Inherits="ProjectSem40701.Admin.SponsorEdit" ValidateRequest="false" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %>


<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
    <title>Cập nhật thông tin nhà tài trợ</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--
        set tab active here
     -->
    <script type="text/javascript" language="javascript">
        setTab(document.getElementById("2"));
    </script>
    <!--
        end set tab active
     -->
    
    <telerik:radscriptmanager ID="RadScriptManager1" runat="server">
    </telerik:radscriptmanager>
    
    <div id="box">
        <h3>Cập nhật thông tin nhà tài trợ</h3>
         <fieldset class="fieldset">
            <legend>
                Thông tin nhà tài trợ
            </legend>       
            <p>
                <label>Tên nhà tài trợ:</label>
                <asp:TextBox ID="txtSponsorName" runat="server" Width="150px"></asp:TextBox>
            </p>   
            <p>
                <label>Địa chỉ:</label>
                <asp:TextBox ID="txtAddress" runat="server" Width="150px"></asp:TextBox>
            </p>   
            <p>
                <label>Điện thoại:</label>
                <asp:TextBox ID="txtTel" runat="server" Width="150px"></asp:TextBox>
            </p>   
            <p>
                <label>Email:</label>
                <asp:TextBox ID="txtEmail" runat="server" Width="150px"></asp:TextBox>
            </p>
            
             <p>
                <label>Ảnh đại diện: </label>
                <asp:Image ID="imgSponsorImage" runat="server" Width="100px" />
            </p>
            
            <label></label>
                 <asp:FileUpload ID="fileUpSponsorImage" runat="server" />   
            
            <label>Mô tả:</label>
            <FCKeditorV2:FCKeditor ID="txtDescription" runat="server" BasePath="../fck/" 
                Height="350px" Width="550px">
            </FCKeditorV2:FCKeditor> 
            
            <p>
                <label>Trạng thái:</label>
                <asp:DropDownList ID="cbbStatus" runat="server" Width="158px">
                    <asp:ListItem Value="1">Hoạt động</asp:ListItem>
                    <asp:ListItem Value="0">Khóa</asp:ListItem>
                </asp:DropDownList>
            </p> 
        </fieldset>
        
        <div align="center">
            <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" CssClass="button" 
                onclick="btnUpdate_Click" />
            <asp:Button ID="btnDelete" runat="server" Text="Xóa nhà tài trợ" CssClass="button" 
                onclick="btnDelete_Click" />
            <cc1:ConfirmButtonExtender ID="btnDelete_ConfirmButtonExtender" runat="server" 
                ConfirmText="Bạn có thực sự muốn xóa thành viên này?" Enabled="True" TargetControlID="btnDelete">
            </cc1:ConfirmButtonExtender>
        </div>
        
        <%--Thông báo thành công hay thất bại ở đây--%>
        
        <cc1:ModalPopupExtender ID="btnAdd_ModalPopupExtender" runat="server" 
                        DynamicServicePath="" Enabled="False" TargetControlID="btnUpdate"
                        BackgroundCssClass="modalBackground"
                        PopupControlID="pnlPopup" >
        </cc1:ModalPopupExtender>
        <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 
                        DynamicServicePath="" Enabled="False" TargetControlID="btnDelete"
                        BackgroundCssClass="modalBackground"
                        PopupControlID="pnlPopup" >
        </cc1:ModalPopupExtender>
    
        <asp:Panel ID="pnlPopup" runat="server" CssClass="confirm-dialog" style="display:none;">
            <div class="inner">
                <h2>
                    <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                </h2>
                <div class="base">
                    <asp:Label ID="lblSuccess" runat="server" Text="" Visible="false"></asp:Label>
                    <asp:Button ID="btnYes" onclick="btnYes_Click" runat="server" Text="Yes" />                            
                    <asp:LinkButton ID="LinkButton1" runat="server" CssClass="close" OnClick="btnClose_Click"
                        OnClientClick="$find('mdlPopup').hide(); return false;" />
                </div>
            </div>
        </asp:Panel>
        
    </div>
</asp:Content>
